package com.wutong.eams.dto;

import com.wutong.eams.entity.User;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 用户管理DTO
 */
public class UserManagerDTO {

    @Data
    @AllArgsConstructor
    public static class CreateUser {
        private User user;
    }

    @Data
    @AllArgsConstructor
    public static class UpdateUser {
        private User user;
    }

    @Data
    @AllArgsConstructor
    public static class DeleteUser {
        private Integer userId;
    }

    @Data
    @AllArgsConstructor
    public static class QueryUserByPage {
        private Integer page;
        private Integer size;
    }

    @Data
    @AllArgsConstructor
    public static class GetUserById {
        private Integer userId;
    }

    @Data
    @AllArgsConstructor
    public static class UpdateUserPassword {
        private Integer userId;
        private String oldPassword;
        private String newPassword;
    }

}
